﻿@using OBUCare.Web.Models;
@using OBUCare.Core;
@using OBUCare.Core.Models;
@using OBUCare.Web.Infrastructure;
@model IEnumerable<View_Operator_InvoiceInfos>
@{
    Layout = "";
    ViewBag.Title = "营业厅日常业务日报";
 
}
@Scripts.Render("~/bundles/Common")
<div id="divPrint" style="width: 100%;">
    <table>
        <tr style="text-align: center; font-size: 24px">
            <td colspan="2">
                营业厅维修业务日报
            </td>
        </tr>
        <tr>
            <td>
                日期： @ViewBag.recordDate
            </td>
            <td>
                营业厅： @ViewBag.agent_name
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table border="1" style="font-size: 14px; border-collapse: collapse; border: none;">
                    <tr style="text-align: center;">
                        <td>
                            项目
                        </td>
                        <td>
                            金额
                        </td>
                        <td>
                            国税张数
                        </td>
                        <td>
                            国税金额(元)
                        </td>
                        <td>
                            地税张数
                        </td>
                        <td>
                            地税金额(元)
                        </td>
                        <td>
                            收据张数
                        </td>
                        <td>
                            收据金额(元)
                        </td>
                    </tr>
                    @if (Model != null && Model.Count() > 0)
                    {
                        foreach (var item in Model)
                        {
                            switch (item.INVOICE_TYPE)
                            {
                                case 1:
                  
                        <tr style="text-align: center;">
                            <td>
                                标签维修费
                            </td>
                            <td>
                                @item.FUND_AMOUNT
                            </td>
                            <td>
                                @item.StatetaxCount
                            </td>
                            <td>
                                @item.StatetaxAmount
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                        </tr> 
                           break;
                                case 2:
                        <tr style="text-align: center;">
                            <td>
                                标签服务费
                            </td>
                            <td>
                                @item.FUND_AMOUNT
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                @item.LocaltaxCount
                            </td>
                            <td>
                                @item.LocaltaxAmount
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                        </tr>
                           break;
                                case 3:
                        <tr style="text-align: center;">
                            <td>
                                押金
                            </td>
                            <td>
                                @item.FUND_AMOUNT
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                @item.ReceipttaxCount
                            </td>
                            <td>
                                @item.ReceipttaxAmount
                            </td>
                        </tr>
                           break;

                            }
                        }
                    }
                    else
                    {
                        <tr style="text-align: center;">
                            <td>
                                标签维修费
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                        </tr> 
                        <tr style="text-align: center;">
                            <td>
                                标签服务费
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                        </tr>
                        <tr style="text-align: center;">
                            <td>
                                押金
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                --
                            </td>
                            <td>
                                0
                            </td>
                            <td>
                                0
                            </td>
                        </tr>
                    }
                    <tr style="text-align: center;">
                        <td>
                            收款(现金)
                        </td>
                        <td>
                            收款(支票)
                        </td>
                        <td>
                            收款(转账)
                        </td>
                        <td>
                            收款(POS机)
                        </td>
                        <td>
                            收款(应收)
                        </td>
                        <td>
                            收款(其它)
                        </td>
                        <td>
                            收款(押金转)
                        </td>
                        <td>
                            收款(合计)
                        </td>
                    </tr>
                    <tr style="text-align: center;">
                        <td>
                            @ViewBag.from_0
                        </td>
                        <td>
                            @ViewBag.from_1
                        </td>
                        <td>
                            @ViewBag.from_2
                        </td>
                        <td>
                            @ViewBag.from_3
                        </td>
                        <td>
                            @ViewBag.from_4
                        </td>
                        <td>
                            @ViewBag.from_5
                        </td>
                        <td>
                            @ViewBag.from_10
                        </td>
                        <td>
                            @ViewBag.AllAmount
                        </td>
                    </tr>
                    <tr style="text-align: center;">
                        <td colspan="3">
                            退款(现金)
                        </td>
                        <td colspan="3">
                            退款(转财务)
                        </td>
                        <td colspan="2">
                            退款(合计)
                        </td>
                    </tr>
                    <tr style="text-align: center;">
                        <td colspan="3">
                            @ViewBag.returnAmount
                        </td>
                        <td colspan="3">
                            @ViewBag.returnFinace
                        </td>
                        <td colspan="2">
                            @ViewBag.returnAll
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                财务审核： &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            </td>
            <td>
                业务员：
            </td>
        </tr>
    </table>
</div>
<div>
    <p>
        <input type="button" onclick="printpage('divPrint')" value="打印" />
        <input type="button" onclick="CloseWindow()" value="关闭" />
    </p>
</div>
